#!/bin/bash
docker exec -it ejabberd_ecs bin/ejabberdctl register admin localhost admin888
docker exec -it ejabberd_ecs bin/ejabberdctl register leeyi localhost abc123456
docker exec -it ejabberd_ecs bin/ejabberdctl register demo1 localhost abc123456
docker exec -it ejabberd_ecs bin/ejabberdctl register demo2 localhost abc123456
docker exec -it ejabberd_ecs bin/ejabberdctl register demo3 localhost abc123456
docker exec -it ejabberd_ecs bin/ejabberdctl register demo4 localhost abc123456
docker exec -it ejabberd_ecs bin/ejabberdctl register demo5 localhost abc123456

# Create MUC room
docker exec -it ejabberd_ecs bin/ejabberdctl create_room room1 localhost localhost

# docker exec -it ejabberd_ecs bin/ejabberdctl destroy_room room1 localhost

# affiliation room

docker exec -it ejabberd_ecs bin/ejabberdctl set_room_affiliation room1 localhost leeyi@localhost affiliation
docker exec -it ejabberd_ecs bin/ejabberdctl set_room_affiliation room1 localhost admin@localhost affiliation
docker exec -it ejabberd_ecs bin/ejabberdctl set_room_affiliation room1 localhost demo1@localhost affiliation
docker exec -it ejabberd_ecs bin/ejabberdctl set_room_affiliation room1 localhost demo2@localhost affiliation
